package com.sg.xy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cloud-code-service", path= "/code")
public interface CodeFeign {
    @GetMapping("/validate/{email}/{code}")
    public String validate(@PathVariable String email, @PathVariable String code);
}
